<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <button>哦飞机阿松i积分11</button>
    <script>
      const btn = document.querySelector("button");

      btn.onclick = () => {
        console.log("按钮被点击了111");
      };

      btn.onclick = () => {
        console.log("按钮被点击了222");
      };

      btn.addEventListener("click", function () {
        console.log("按钮被点击了333 function 函数");
      });

      btn.addEventListener("click", (e) => {
        console.log("按钮被点击了 箭头函数", e.currentTarget);
      });
    </script>
  </body>
</html>
